<?php if (!defined('THINK_PATH')) exit();?><input id="status" name="status" type="hidden" value="<?php echo ($status); ?>"/>
<div class="yuList">
    <table class="table table-bordered">
        <thead>
            <tr>
                <td width="8%">登记编号</td>
                <td width="16%">手机号</td>
                <td width="6%">预算</td>
                <td width="6%">车型</td>
        <?php if($status == 1): ?><td width="6%">渠道</td>
            <td width="18%">创建时间</td>
            <?php elseif($status == 2): ?>
            <td width="6%">渠道</td>
            <td width="18%">上次跟踪时间</td>
            <td width="10%">操作人</td>
            <?php elseif($status == 3): ?>
            <td width="10%">所在地</td>
            <td width="6%">渠道</td>
            <td width="10%">登记时间</td>
            <td width="10%">操作人</td>
            <?php elseif($status == 4): ?>
            <td width="6%">渠道</td>
            <td width="10%">登记时间</td>
            <td width="10%">操作人</td><?php endif; ?>    
        <!--<td width="8%">操作</td>-->
        </tr>
        </thead>
        <tbody>
        <?php if(is_array($list)): $k = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($k % 2 );++$k;?><td><?php echo ($list["id"]); ?></td>
            <td><?php echo ($list["phone"]); ?></td>
            <td><?php echo C("CUSTOM_BUDGET.".$list['budget'])?></td>
            <td><?php echo C("CUSTOM_CAR_TYPE.".$list['car_type'])?></td>
            <?php if($status == 1): ?><td><?php echo C("CUSTOM_COME_FROM.".$list['comefrom'])?></td>
                <td><?php echo ($list["created_at"]); ?></td>
                <?php elseif($status == 2): ?>
                <td><?php echo C("CUSTOM_COME_FROM.".$list['comefrom'])?></td>
                <td><?php echo ($list["custom_time"]); ?></td>
                <td><?php echo ($list["emp"]); ?></td>
                <?php elseif($status == 3): ?>
                <td><?php echo ($list["addr"]); ?></td>
                <td><?php echo C("CUSTOM_COME_FROM.".$list['comefrom'])?></td>
                <td><?php echo ($list["custom_time"]); ?></td>
                <td><?php echo ($list["emp"]); ?></td>
                <?php elseif($status == 4): ?>
                <td><?php echo C("CUSTOM_COME_FROM.".$list['comefrom'])?></td>
                <td><?php echo ($list["custom_time"]); ?></td>
                <td><?php echo ($list["emp"]); ?></td><?php endif; ?>
<!--            <?php if(($status == 1 OR $status == 2)): ?><td><a href="/Custom/custom_deal/id/<?php echo ($list["id"]); ?>">登记</td>
                <?php elseif(($status == 3 OR $status == 4)): ?>
                <td><a href="/Custom/custom_check/id/<?php echo ($list["id"]); ?>">查看</td><?php endif; ?>-->
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
    </table>
    <div class="pageFaye"><div class="pager"><?php echo ($page); ?></div><div class="clear"></div></div>
</div>